Allow \n\n in data

We now insert a strut before a newline just
to make sure that \n\n in the data will
properly make a newline and the line high enough
for the current font.
Fix "empty attribute" bug in XML parser

Also fix potential bug on returning boolean
value in _castable when the attribute is empty