Typed FlxSignal

Added type parameters to FlxSignal.
It is a rip-off version of msignal with only the essential components remain.

I removed the persist property because I believe it should be the user to handle this. They have the stateSwitch signal anyway.

Please feel free to discuss.