Fix bug in decoding enums for Slice Queries. Fix buggy implementation of FactoryBean for Spring integration