Added support for hash reference in Badger::Factory type_args()