Fix grid scaling and units on init
Assumptions were made if attributes weren't present in loaded file, and weren't scaled correctly. The units were being set to the document units which should rather be from preferences instead.
Fixes: #4726 (closed)
Edited by James Ferrarelli