extra key/value type checks in compute() and bulkCompute() methods