* Only mark value as final if readonly parameter is "true"

Value was marked as final regardless of `readonly`'s actual value as long as it was set.