proper logic to handle functions, strings, objects and overrides with resource #1089
additional docs for #1089