allow IDeref objects (atoms, refs, futures) to be auto-derefed by REST access
use extend-type rather than extend here

a bit cleaner
mark restfn release 0.0.2