Get/set DatapathId by byte array and a few other miscellaneous fixes

Reviewer: @andi-bigswitch