Fix stream_template key_type