Default value for type and making type lower
Improved doctype serialization
Omit empty style rules in serialization
Added additional tests for fragment mode
Added more tests for HTML5 conformness