Add type checks.
Add type checks.

Since we can't use scalar type declarations in 5.6. Exceptions are better than notices. If you don't handle the exception, you crash. If you do handle the exception, you don't leak your path information.
SignpostMarv/easydb,paragonie/easydb