use node v0.10 on travis because of dependency version ranges starting with ^
Add isPrimitive.