Add assertion for tilemap collections

Assertion to catch issue 1118:
https://github.com/cocos2d/cocos2d-swift/issues/1118