Bump version to 0.2.40.
Merge branch 'release/0.2.40' into develop