Bug fixes and improvmenets to FlexAutoloader