Finishing up the rewrite of EmcValue