api: adopt to newest hashmap changes in 0.5 xjst

Otherwise it will be slower than it could be

cc @tadatuta URGENT!