Fix iOS error objects not having error constants

The error objects returned by the plugin do not have accessible error constants for comparing against `error.code`. Browser implementations (such as Chrome and Safari) provide these, and they allow developers to avoid having to rely upon magic numbers when handling errors from WebSQL.

The following patch brings the error objects from this library into closer API compatibility with other WebSQL implementations and fixes the issues we were seeing about undefined properties.