How to avoid anti-aliasing when scaling sprites and costumes

Yes, by using this

It is kind of slow, but it gets the job done (there's a custom block in the looks category).

You could run this, store the upscaled costumes in the project and use those instead. Of course, you could upscale them in an external editor, then use that instead.