Fixes bug with sprite name collision

If the sprite name is the same name as any of the files in the sprite, then the sprite creation will fail.

This fix checks for this for Sprites and Bundles to prevent collisions.
Merge pull request #1027 from jlestein/master

Sprite: Name collision bug