kvstore: rename TypeError contructor function