derive Types for Persistent Field

So we can user them in all of the persistent's backends available.