Add back the optional .type

One thing I forgot to add back before submitting #87 – optional `.type` for literals. /cc @propensive