I strongly recommend to merge this into 0.13 (current master or in 0.13 once we have split off).
Without this PRs CKeyMetadata extension, we will very likely run into problem to later identify which key are HD.
Wallets in Core can always have non-hd keys along with hd-keys (through importwallet, importprivkey).