Change semantics of firstKey, lastKey per #244