[core] Add object.apply and object.invoke

apply calls the given method with array of args
invoke calls the given method with provided args