Fixing #847: respect max_number_of_*_dir
Trying out a macro for inlining stringstream operations

Inspored by the following macro:
casadi_assert_message(true,"foo" << bar )

This would allow:
f.setOption("name",STRING("foo" << bar))