added appropriate error messages if form is not specified for complex type
Checking if ui.form is already initialized or not
Now using "data-template" to render list items in complex type