Fix and move index mapping tests
Fix Type::getMapping when using an aliased index
Merge pull request #591 from idio/alias-mapping

Fix Type::getMapping from aliased index