Fix and test #270, #242, #285

First attempt to Fix type overriden by listener even when user defined