add support for enums in the RelationalCache

@oldpatricka