fixes #48 corrected the assertion for ResourceStateMachine constructor with an exception state
fixes #51 handle LocalTime types for TIME term type