A few parser fixes

While working on some old and new projects, I ran into a couple minor issues with the parser.  While these all have workarounds, I decided to try fixing them instead as I hate modifying my old code.

As a bonus, I have also included a fix to an image alignment issue that would appear when loading sprites externally with sprite_add, specifically when the sub-images contained within were of non-power-of-2 width.