Issue #9: Fixed invalid vector width in "is_scalar_range" and encapsulated the debug dump routines in pre-processor blocks