Bug fixes and new version scheme

Im assuming this is so that the debug message below doesn't fail because oldvalue is None and it tries to call str(oldvalue) ?