add time.Time to yaml marshaling

This only answers half the problem: encoding. Test included as well.