Fixed parsing of method calls from array elements