Fix default values issues

This patch should fix issues introduced on 0.6.1 and 0.6.2, we handle
default dumps separately for puppet 2.7. We keep :undef values as nil.