Minor fix for type handling in hybridsim.py