Small bugs corrections.
- Dump file handle proper closing
- print_value exported by default by basic.pm

Change-Id: Iee7ac5aeee3cf6aaabd2e3a8147dddd5545b1310