add support for index replacement and function resolution in field values and arguments