Add constructor for simple types from ordinal values.