SpriteReader fixes

Fixes issues with shp, shp(ts) and shp(d2).