fixes bug that prevented SQLAccessControlContext from being serializable, and adds new serialization test