Fix ClassCastException to Nothing$ because of incorrectly infered type
Merge pull request #361 from Antanukas/lookup-ex

Fix ClassCastException to Nothing$ because of incorrectly infered type