Backend specific datatypes, take 2

This is pretty much the same as the request I submitted a year ago, #91 (without the JSON serialization mistake, and with some documentation and the newest version of persistent). I tested it with point values in Postgresql and MySQL.