Fetch changes from Anchor 0.9

My merged changes and further changes from core developers.