Merge "Add support for new-instance and invoke-direct."