Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.