Ref #375: added workaround for small sizes to scal.c and zscal.c