Check for "asInstanceOf"
Avoid "return" in "match"
Improve codin style
Pass "implicit m: Manifest[T]"
immutableMap should be Map not MMap