"JS<T>::from_raw" should accept "*T" instead of "*mut T"

Fix #2511

@jdm r?