Added support for typed objects and associative array