issue 1350, enhance form serialization for services/json output, thanks Alan