Added test to prove issue
Fixes bug with reversed types