Refactor convert(std::array) to follow same format as YAML built-in
functions.
Updated testcases to check decoding into smaller/larger arrays.
Add asserts to setters to catch nullptr and dynamic cast failure.