SI-7015 Cleanup from review of null duplication

Based on feedback on https://github.com/scala/scala/pull/2147

* Assertion in GenICode#adaptNullRef reports the erroneous type
* Test makes the Null type explicit for greater clarity