Use TMxpElement as a value class to avoid memory leaks.
Merge pull request #104 from ahmedcharles/tmxpelement_leak

Use TMxpElement as a value class to avoid memory leaks.