Replace custom isArray/isObject methods with Angular's built-in methods.