More ljglibs work: Cast signal arguments and more

- Cast signal parameters when we know something about the type
- Add more needed methods for various classes
Remove lgi from Application