Bug fix in SCParser for bool properties

The way SCParser parsed bool values was changed, but the new result
wasn't the result being stored.
Removed unused variables
Fixed some casting issues with floats to ints and back
Fixed an int to bool cast warning
Fixed sprintf to be correct