PHOENIX-1362 fix min/max function on fixed length data types

Sorry for the second pull request - still figuring out git.