replace function calls with variable accesses in the CMapTile derivation tree
improvements, fixes, refactoring related to map tile owner

following commit 58ad7be2ed0ff5525849ea04e6e68d1eb538a842