Merge pull request #39 from schancel/FixConditionalDecls

Moving Base class definition to the proper location.
adding .length for Arrays and fixed .length for slices
Merge pull request #19 from UplinkCoder/ArrayLength

.length for staticlly typed arrays
More prettifying of code based on updated config.