Change return type of firstNonNull to dynamic

This is to fix #144