Fixing cache issue in Model classes

If the $_cache variable was not redeclared in child classes, it will be
shared among all child classes, which is not what we want. So added a
classname dimension to group them.

Also:
- added camelcase converter for convenience
- fixed halt() variable extraction