Use enums in FlxBar and FlxTilemap as well, closes #998