Changed IsLittleEndian().

- Renamed function to IsHostLittleEndian().
- Implemented in terms of a global bool to prevent re-evaluation.
Propagated changes to IsHostLittleEndian.
SwapBytes now casts through a ref rather than concrete type.