expand references in arguments