type safety

added toString() conversion because yaml-js types everything it can (e.g. timestamp -> Date object)