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

Discussion can be found at: https://github.com/jabberd2/jabberd2/issues/67
Merge pull request #84 from sdebnath/int-fix

Fixed INTEGER/BOOLEAN values handling in storage on 64bit platforms