fixed some initialization problems and type conversions reported/fixed by Johannes Rieke
fixed some initialization problems and type conversions reported/fixed by Johannes Rieke

Former-commit-id: 70c617a0f7d6433b292dfcceb777df79025f53c9
OpenFAST/OpenFAST,OpenFAST/OpenFAST,OpenFAST/OpenFAST