Fix casts and warnings
Add in PropertyManager code to enable reading that part of file
Some hacks to enable reading of v4 .fld files. Closes #341.