std: Bug fix in perfect_hashing

Signed-off-by: Julien Pagès <julien.projet@gmail.com>
nitvm: Bug fixes