BUG-1457: fixed parsing of max-elements statement.

If max-elements was set to "unbounded", parser throws an exception.
Added test.

Change-Id: I37df99b504e989353f5a0b33f0a2d99e6c796668
Signed-off-by: Martin Vitez <mvitez@cisco.com>