Add support for objects an associative arrays in templates
Minor improvements and some error pages