Fix #1273 Rest API does not resolve categorical references