Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  Added test for sprint_realloc_variable with -OQ cmdline argument.
  Added checks for printing variables with wrong types.