helpers: added shallow object buffer conversion to deal with keyPair()