Support references in foreach when prettifying PHP code