Support resolving of instances of commands / readModels and queries

closes #430