Fixed a bug where FrameData.getFrameIndexes ignores the input parameter.

Fixed a bug where FrameData.getFrameIndexes always ignores the input parameter.
Fixed a bug where FrameData.getFrameIndexes requires objects with an index property instead of just the numeric indexes.

I posted details of the problem I encountered here:
http://www.html5gamedevs.com/topic/1426-sprite-animation-play-only-frames-1-to-x-numeric-index/