Invalid INTEGER/BOOLEAN values are saved to database storages in x86_64.

Discussion can be found at: https://github.com/jabberd2/jabberd2/issues/67