Added dynamic array examples with codegen