return user specified dtype, not SQL_TYPE
test cleanup
better docstrings