Ensure to_loopy_type returns a dtype with correct target set, if specified
Minor fix to what (I see) as an unintuitive use case of to_loopy_type
. I realized after the fact that there is a more simple with_target
that may be called directly on the dtype, but it still took me a bit to realize that the target
field was being ignored when a LoopyType
was being passed as the dtype into this function