Added ability to parse numbers

Int or float attributes should be set to their correct type now.