Remove INullableValue

Remove practically unused interface
Fix up some enum castings
Code cleanup

Change defaultpagesetup values to be setup in code rather than parsed
from a string