Implement BracketToGet intention action.

Converts foo[...] to foo.get(...)