Fixes for ACE-121

converted non-int metric values to int
fixed a bug in TileCase()