Refactor info functions and macros to accept a minimum size
avoiding segmentation faults when casting in _info_scalar() macros.

Fix bug in ocl_commandqueue.c.