Dictionary extensions.
Fixed compilation errors.