add 'anything' option to query fields.
fixes github issue #37 model.getResourceAndField(..) fails if resource is reference resource is null.