PUB-783: Add test for reconstruction of categorical data.  Fix bug in adaptation of frame.