Added support for local methods, array types and fixed bug in object cache.