fix stub building for nullable types