handling primitives in mapply. closes #172