Support for loading tilemaps with plain XML layer format

Merge the PR #2776 and add some extra control for load plain XML layer format.
thanks @simpliplant