Add lang/isPrimitive. closes #181