lms scala codegen
manifest fixes
various fixes