Add specs for error inside to_hash of keyword args
Improve keyword arguments coercion and fix GC crash